package com.account.service.impl;

import com.account.dao.AccountDao;
import com.account.domain.Account;
import com.account.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public int pay(long userId, BigDecimal money) {

        return accountDao.pay(userId,money);
    }
}
